import service from "@/http";

/**
 * 从地网导入商户
 * /api/grouponBusiness/addBusinessFromWisdom
 *  @param {Object} data:{}
 * */
export const addBusinessFromWisdom = (data) =>
  service({
    method: "POST",
    url: "grouponBusiness/addBusinessFromWisdom",
    data,
  });

/**
 * 修改商户
 * /api/grouponBusiness/updateBusinessFromWisdom
 * 修改商户
 *  @param {Object} data:{}
 * */
export const updateBusinessFromWisdom = (data) =>
  service({
    method: "POST",
    url: "grouponBusiness/updateBusinessFromWisdom",
    data,
  });
/**
 * /api/grouponBusiness/detailById
 * 查询团购商户详情
 *  @param {String} businessId:商户ID
 * */
export const detailById = (businessId) =>
  service({
    method: "GET",
    url: "grouponBusiness/detailById?businessId=" + businessId,
  });

/**
 * /api/grouponBusiness/getGrouponBusinesses
 * 查询团购商户列表
 *  @param {Object} params:{}
 * */
export const getGrouponBusinesses = (params) =>
  service({
    method: "GET",
    url: "grouponBusiness/getGrouponBusinesses",
    params,
  });
